home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / sysadmin.296 < prev    next >
Text File  |  1992-02-06  |  2KB  |  82 lines

  1. {\rtf0\ansi{\fonttbl\f2\fnil Times-Roman;\f0\fmodern Courier;}
  2. \paperw13040
  3. \paperh9540
  4. \margl120
  5. \margr120
  6. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f2\b0\i0\ul0\fs28 sendmail outgoing sender name translation mail\
  7. \
  8. Q: How can I translate from a login name (e.g., of the form first initial and a last name) to a canonical  alias on outgoing mail (e.g., from “jdoe” to “Jane_Doe”)?\
  9. \
  10. A: We recommend you do this 
  11. \b\i\fs32 ONLY
  12. \b0\i0\fs28  if you're comfortable supporting sendmail, modifying sendmail.cf files, and adding custom NIS (formarly known as Yellow Pages) maps.  (In other words, 
  13. \i this can be dangerous
  14. \i0  if you're unfamiliar with sendmail and NIS.)\
  15. \
  16.  
  17. Find the area in the 
  18. \b sendmail.cf
  19. \b0  file on your mailhost which looks like this:\
  20. \
  21.  
  22. \f0\fs24\li980 ###########################\
  23. ###   Rewriting rules   ###\
  24. ###########################\
  25. \
  26. #  Sender Field Pre-rewriting\
  27. S1\
  28. # None needed.\
  29.  
  30. \li0 \
  31.  
  32. \f2\fs28 This is the rewriting rule which modifies the sender's address, as noted in the comments.  Add the line\
  33.  
  34. \f0\fs24 \
  35.  
  36. \li980 DZmail.byaddr\
  37.  
  38. \li0 \
  39.  
  40. \f2\fs28 immediately before the “
  41. \f0\fs24 # Sender Field ...
  42. \f2\fs28 ”
  43. \f0\fs24  comment. 
  44. \f2\fs28  Replace the “
  45. \f0\fs24 # None needed.
  46. \f2\fs28 ” comment with this:\
  47. \
  48.  
  49. \f0\fs24\li980 R$-    $:$>3$\{Z$1$\}        invert account to alias\
  50.  
  51. \f2\fs28\li0 \
  52. When you're done, this rule will look like this:\
  53. \
  54.  
  55. \f0\fs24\li980 ###########################\
  56. ###   Rewriting rules   ###\
  57. ###########################\
  58. \
  59. DZmail.byaddr\
  60. #  Sender Field Pre-rewriting\
  61. S1\
  62. R$-    $:$>3$\{Z$1$\}        invert account to alias\
  63.  
  64. \f2\fs28\li0 \
  65. The directive 
  66. \f0\fs24 $\{Z$1$\}
  67. \f2\fs28  causes token 1 (the sender's account) to be translated using the NIS map specified by the Z macro.  The mail.byaddr NIS map is a custom map which establishes a relationship between accounts and “mail names” (like jdoe and Jane_Doe, shown above).  You'll also need to establish a link between the user name (e.g., Jane_Doe) and the account (e.g., jdoe) for incoming mail to the user name to work; the standard aliases mechanisms can be used for this.\
  68. \
  69. If you're using the standard 
  70. \b sendmail
  71. \b0  configuration files, we recommend you make a copy of the appropriate configuration file, edit that, and change the
  72. \b  sendmail.cf
  73. \b0  symbolic link to reference your custom configuration file.\
  74. \
  75. QA296\
  76. \
  77. Valid for 1.0 \
  78. Valid for 2.0\
  79. \
  80.  
  81.  
  82.